/*----------------------------------------------------------------------
  - File name      : tmt.h
  - Author         : Quark Team
  - Update date    : 2020-09-28                   
  -	Copyright      : Gevico Electronic studio   
  - Module comments: Header file of Task Management Tool module.
-----------------------------------------------------------------------*/
#ifndef __TMT_H_
#define __TMT_H_
/*-----------------------------------------------------------------------
|                               INCLUDES                                |
-----------------------------------------------------------------------*/
/* Add new task module in include */

/*-----------------------------------------------------------------------
|                                 DATA                                  |
-----------------------------------------------------------------------*/

#define  uint8     uint8_t
#define  uint16    uint16_t

/*--------------------------------------------------------
| @Description: Task definition                          |
--------------------------------------------------------*/

typedef struct 
{
	uint8 Run;               //Program running flag
    uint16 TIMCount;         //Time counter
	uint16 TRITime;          //Task running interval
	void (*TaskHook) (void); //Task function to run
} TASK_COMPONENTS;     

/*-----------------------------------------------------------------------
|                             API FUNCTION                              |
-----------------------------------------------------------------------*/

/*--------------------------------------------------------
| @Description: Task control function                    |
--------------------------------------------------------*/

/* Put into timer interrupt function */
void Task_Marks_Handler_Callback(void);

/* Put into the main program loop */
void Task_Pro_Handler_Callback(void);   


#endif
/*-----------------------------------------------------------------------
|          END OF FLIE        (C) COPYRIGHT Gevico Electronics          | 
-----------------------------------------------------------------------*/

